package com.bymboy.emos.wx.service;

import com.bymboy.emos.wx.db.pojo.MessageEntity;
import com.bymboy.emos.wx.db.pojo.MessageRefEntity;

import java.util.HashMap;
import java.util.List;

/**
 * @Package: com.bymboy.emos.wx.service
 * @ClassName: MessageService
 * @Author: My
 * @CreateTime: 2021/10/5 14:00
 * @Description:
 */
public interface MessageService {

    String insertMessage(MessageEntity entity);

    String inserRef(MessageRefEntity entity);

    long searchUnreadCount(int userId);

    long searchLastCount(int userId);

    List<HashMap> searchMessageByPage(int userId, long start, int length);

    HashMap searchMessageById(String id);

    long updateUnreadMessage(String id);

    long deleteMessageRefById(String id);

    long deleteUserMessageRef(int userId);

}
